package com.tilaiedu.mvc.service.impl;

import com.tilaiedu.mvc.entity.User;
import com.tilaiedu.mvc.mapper.UserMapper;
import com.tilaiedu.mvc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author xlzhang
 * @Date 2022/5/25 14:30
 * @Version 1.0
 * @Description TODO
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String account, String password) {
        return userMapper.selectByParam(account,password);
    }
}
